package com.hsgene.supplier.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.result.NullObject;
import com.hsgene.supplier.service.api.impl.ElasticsearchServiceImpl;
import com.hsgene.supplier.service.api.impl.GeneratorServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: //TODO
 * @ProjectName: hdas-geneshop-server
 * @Package: com.hsgene.supplier.service.api
 * @Author: FX
 * @CreateDate: 2019/1/4 10:47
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */
@FeignClient(value = "ms-mod-product", path = "/v1.0/genetic/testing/products", fallback = ElasticsearchServiceImpl.class)
public interface ElasticsearchService {
    /**
     * 根据名称修改
     *
     * @param queryName
     * @param queryValue
     * @param idOrCode
     * @return
     * @author FX
     * @date 2019/1/4 10:45
     */
    @PutMapping("relation")
     ApiResult<NullObject> updateByQuery(@RequestParam("queryName") String queryName, @RequestParam("queryValue")String queryValue,@RequestParam("idOrCode") String idOrCode);
}
